package com.bdqn.t330.ch05;

import com.bdqn.t330.ch05.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

//声明该类是一个配置类
@Configuration
public class BeanConfig {

    @Bean
    public User user2(){
        return new User(200);
    }

}
